﻿using System;
using ExFlash.Records;

namespace ExFlash.Filters
{
    public class BlurFilter : ISwfSerializable
    {
        public FixedFloatRecord BlurX
        {
            get;
            private set;
        }
        
        public FixedFloatRecord BlurY
        {
            get;
            private set;
        }

        public Byte Passes
        {
            get;
            private set;
        }

        #region ISwfSerializable Members

        public void SwfDeserialize(BinaryBitReader reader)
        {
            BlurX = new FixedFloatRecord();
            BlurX.SwfDeserialize(reader);

            BlurY = new FixedFloatRecord();
            BlurY.SwfDeserialize(reader);

            Passes = (byte)(reader.ReadByte() >> 3);
        }

        public void SwfSerialize(byte[] arr, ref int offset)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
